import { TOKEN_KEY, USERINFO_KEY } from '/@/enums/cacheEnum';
import { Local, Session } from '/@/utils/storage';

export function getToken() {
    return Local.get(TOKEN_KEY)
}

export function setToken(value:string) {
    Local.set(TOKEN_KEY, value);
}

export function clearAuthInfo() {
    Local.remove(TOKEN_KEY);
    Local.remove(USERINFO_KEY);
    Session.clear();
}